import time
from configloader import ConfigLoader
from component.queuemodel import QueueModel

cl = ConfigLoader.get_instance()
cl.loadConfig('config.json')

def main():
    print("Monitoring Deployment Request~")
    while QueueModel.apply_scale_deployments() == 0:
        time.sleep(cl.duration)

if __name__ == "__main__":
    main()